<?php

namespace app\admin\validate;
use \think\Controller;
use app\admin\model\Article as articleModel;
use think\Validate;

class Article extends Validate
{

    protected $rule =   [
        'title'  => 'require',
        'click'   => 'number|between:1,1000',
    ];

    protected $message  =   [
        'title.require' => '名称必须',
        'click.number'   => '点击数必须是数字',
        'click.between'  => '点击数只能在1-1000之间',
    ];

}
